package com.liu.common.entity.enums;

/**
 * 权限 枚举
 */
public enum PermissionEnum {

    UPDATE_USER_INFO("UPDATE_USER_INFO", "修改用户信息"),
    ADD_PERMISSION("ADD_PERMISSION", "新增权限权限"),
    UPDATE_USER_PERMISSION("UPDATE_USER_PERMISSION", "修改用户权限"),
    DELETE_PERMISSION("DELETE_PERMISSION", "删除权限权限"),
    IS_ADMIN("IS_ADMIN", "所有权限"),
    ADD_OPERATE("ADD_OPERATE", "添加操作权限"),
    UPDATE_OPERATE("UPDATE_OPERATE", "修改操作权限")
    ;

    private final String code;

    private final String name;

    PermissionEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public String getCode() {
        return code;
    }
}
